package com.white.service.imp;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.white.bean.Communicate;
import com.white.mapper.CommunicateMapper;
import com.white.service.CommunicateService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class CommunicateServiceImpl extends ServiceImpl<CommunicateMapper, Communicate> implements CommunicateService {
    @Autowired
    CommunicateMapper communicateMapper;
    @Override
    public List<Communicate> search(Long requestUserId, Long responseUserId) {
        return communicateMapper.search(requestUserId, responseUserId);
    }

    @Override
    public List<Communicate> searchLatest(Long userId, Long responseUserId) {
        return communicateMapper.searchLatest(userId, responseUserId);
    }
}
